package com.tjetc.controller;
import com.tjetc.domain.Medicine;
import com.tjetc.service.impl.MedicineServiceImpl;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
* (medicine)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/medicine")
public class MedicineController {
/**
* 服务对象
*/
@Resource
private MedicineServiceImpl medicineServiceImpl;

/**
* 通过主键查询单条数据
*
* @param id 主键
* @return 单条数据
*/
@GetMapping("selectOne")
public Medicine selectOne(Integer id) {
return medicineServiceImpl.selectByPrimaryKey(id);
}

}
